package org.easymis.crm.modules.system.service.impl;

import java.util.Map;
import java.util.Set;

import org.easymis.crm.modules.system.entitys.mybatis.dto.Member;
import org.easymis.crm.modules.system.entitys.mybatis.mapper.MemberMapper;
import org.easymis.crm.modules.system.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class MemberServiceImpl implements MemberService {
	@Autowired
	MemberMapper mapper;
	@Override
	public Member findByUsername(String username) {
		// TODO Auto-generated method stub
		return mapper.findByMemberame(username);
	}

	@Override
	public Set<String> getRoles(String username) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Set<String> getPermissions(String username) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Member doLoginCheck(String username, String password) {
		// TODO Auto-generated method stub
		Member member = mapper.findByMemberame(username);
		return member;
	}

	@Override
	public int saveIp(Map<String, String> map) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Member login(String loginname) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Member findById(String memberId) {
		// TODO Auto-generated method stub
		return null;
	}

}
